loadHtml

abstract fun loadHtml(html: String)

Navigates the frame to a data URL assembled from the given HTML.

This method tells the frame to start asynchronous loading and returns immediately. But does nothing if the resulting data URL is longer than 2 * 1024 * 1024 characters.

Important: pages loaded through data URLs are not allowed to access resources from the file system.

Since

7.20

Parameters

html

an HTML to load into the frame

Throws

when the frame is closed